﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraReports.UI;

namespace TCCT_CTC_CSDLDangVienV1.Reports
{
    public partial class ReportMain : frmBase
    {
        public ReportMain()
        {
            InitializeComponent();
        }

        public delegate void ReportCloseHandle();
        public event ReportCloseHandle reportCloseHandle;

        public void LoadReport(XtraReport report)
        {
             report.CreateDocument();

            this.printControl1.PrintingSystem = report.PrintingSystem;
        }

    }
}